package com.xy.Improve;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/21 20:35
 * @description
 */
public class MallardDuck extends Duck{
    public MallardDuck() {
        flyBehavior = new FlyWithWings();
        quackBehavior = new Squeak();
    }

    @Override
    public void display() {
        System.out.println("我是绿头鸭...");
    }
}
